<div id="calendrier-view" class="mod">
    <span>  <!--  id="toolbar" class="ui-widget-header ui-corner-all">-->
    {widget name="pageSwitcher" datas="calendrier"}
    {if count($matchs->compets)>1}
      <span class="match-type-view">
        <input type="radio" id="radio-all" name="match-type" checked="checked" /><label for="radio-all">Toutes </label>
      {foreach from=$matchs->compets item=compet_id}
        <input type="radio" id="radio-{$compet_id}" name="match-type" /><label for="radio-{$compet_id}">{loli_lib what="compet_lib" id=$compet_id}</label>
      {/foreach}
      </span>
    {/if}
    </span>
  {if count($matchs->compets)>0}  
    <table class="calendrier mod">
      {if security::isPhoto()}      
      <caption style="caption-side: top">
        Saison n°{saison::getCurrentId()}
      </caption>
      {/if}
      <colgroup>
        <col />
        <col />
        <col />
        <col />
        <col />
      </colgroup>
      <tr class="header">
        <th>Date</th>
        <th>Compet</th>
        <th>Equipes</th>
        <th>Lieu</th>
        <th>Score</th>
      </tr>
    {foreach from=$matchs->matchs item=match}
      <tr class="match-compet-{$match->match_compet_id} match-{$match->match_id}"
      {if security::isPhoto()}
        title="match:{$match->match_id}"
      {/if}
      >
        <td>
          {$match->match_date|date_format:"%A %d/%m"}
        </td>    
        <td title="match n°{$match->match_id}">
          {$match->competLib(true)}
        </td>    
        <td>
          {$match->matchLib()}
        </td>    
        <td>
          {lieu_link id=$match->match_lieu_id diminutif=true}
        </td>    
        <td>
          {$match->matchScore()}
        </td>    
      </tr>
    {/foreach}
    </table>
  {else}
    <h2>Aucun match pour cette saison!</h2>
  {/if}
</div>